package com.lmh;


import com.lmh.util.FileUtil;

/**
 * A Camel Application
 */
public class MainApp {

    /**
     * A main() so we can easily run these routing rules in our IDE
     */
    public static void main(String... args) throws Exception {
        readStrTest();
    }

    public static void readStrTest() throws Exception{
        char[] chars = FileUtil.readStrFromDisk("C:\\Users\\Liumh\\Desktop\\520pcat_baiduNetDownload.md");
        System.out.println(new String(chars));
        byte[] bytes = FileUtil.readStrFromNet("http://www.520pcat.com/upload/201805/24/201805240522071765.txt");
        System.out.println(new String(bytes,"gb2312"));
    }

}

